import request from '@/utils/request'

// 对应接口的创建接口post create
export function uploadPicture(data) {
  return request({
    url: '/common/upload',
    method: 'post',
    data
  })
}

// 对应接口的创建接口post create
export function getFuWenBen(fuwenbenType) {
  return request({
    url: `/fuwenben/${fuwenbenType}`,
    method: 'get'
  })
}

// 对应接口的创建接口post create
export function getMapLocalSearch(query) {
  return request({
    url: 'map/search',
    method: 'get',
    params: query
  })
}
